﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Kenly.DBFramework.Gateway
{
    /// <summary>
    /// Represents a attribute that contains metadata of a Procedure,it can be used to marke a class only.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public sealed class ProcedureAttribute : Attribute
    {
        private string _name = "";
        //private ExecuteType _executeType = ExecuteType.NonQuery;

        /// <summary>
        /// 
        /// </summary>
        public ProcedureAttribute()
        {
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        public ProcedureAttribute(string name)
        {
            _name = name;
        }

        /// <summary>
        /// 
        /// </summary>
        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }

    }
}
